<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>LPlayer测试</title>
    <script src="https://cdn.jsdelivr.net/npm/flv.js/dist/flv.min.js"></script>
    <style>
      *{
        padding: 0;
        margin: 0;
      }
    </style>
  </head>
  <body>
    <div class="LPlayer-wrap" style="height: 100vh;">

    </div>
    <script src="LPlayer.js"></script>
    <script>
      const watchServer = [
        {
          flv:'http://ws-hdl.uvod.cn/live/a201815_32035461_03d7587d3735c22a36247f692f6a18d8.flv',
          hls:'http://rv4.uvod.cn/live/a201815_32035461_03d7587d3735c22a36247f692f6a18d8.m3u8',
          name:'原生地址'
        },
        {
          flv:'http://ws-hdl.uvod.cn/live/a201815_32035461_03d7587d3735c22a36247f692f6a18d8.flv',
          hls:'http://rv4.uvod.cn/live/a201815_32035461_03d7587d3735c22a36247f692f6a18d8.m3u8',
          name:'线路5'
        }
      ]
      new LPlayer({
        container: document.querySelector('.LPlayer-wrap'),
        video:{
          watchServer:watchServer
        }
      })
    </script>
  </body>
</html>
